<template>
	<view class="bg-white">
		<view class="flex flex-direction padding-lg" style="min-height: 100vh;">
			<view class="" style="flex: auto">
				<view style="height: 120px;"></view>
				<view class="file-image flex-center align-center">
					<image  src="@/static/images/ico/167.jpg" mode="widthFix" style="width: 365rpx; height: 365rpx;">
					</image>
				</view>
				<view style="height: 120px;"></view>
				<view class="file-image flex-center align-center"><text>—请选择您的身份—</text></view>
				<view class="padding-top-xl">
					<view class="flex justify-center login-btn" style="margin-top: 50rpx;">
						<u-button @click="submit(1)" text="学生/家长注册登录"  color="#ea3457" size="large" shape="circle">
						</u-button>
						<u-button @click="submit(2)" text="机构/老师注册登录"  color="#ea3457" size="large" shape="circle">
						</u-button>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		computed: {
			disabled() {
			}
		},
		onLoad(e) {

		},

		methods: {
			submit(e) {
				console.log(e);
				if(e==1){
					setTimeout(()=>{
						uni.navigateTo({
							url:'/pages/login/userlogin'
						})
					},100);
				}else if(e==2){
					setTimeout(()=>{
						uni.navigateTo({
							url:'/pages/login/login'
						})
					},100);
				}

			}

		},
	}
</script>

<style lang="scss" scoped>

</style>
